<%@ Page Language="C#" AutoEventWireup="true" Title="View Doctor Message Boards " CodeFile="doctorViewMessage.aspx.cs" MasterPageFile="~/MainMaster.master" Inherits="Doctor_doctorForMessage" %>

<%@ Register Src="../includes/postMessage.ascx" TagName="postMessage" TagPrefix="uc1" %>

<%@ Register Src="../includes/DoctorMenu.ascx" TagName="DoctorMenu" TagPrefix="uc2" %>

<%@ MasterType VirtualPath="~/MainMaster.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainTable" runat="server">

     <% if (Session["userID"].ToString() != "")
       { %>
    <div class="heading_inner">
        <div class="heading_topic">
            <uc2:DoctorMenu ID="DoctorMenu1" runat="server" />
        </div>
    </div>
    <%} %>
    <div class="cl"></div>
    <!---/ Left wrapper -->
    <div style="width: 94%; padding: 3%">
        <div style="background-color: #f4f4f4; width: 94%; padding: 3%;text-align:justify;line-height:20px">

            <table align="center" border="0" cellpadding="0" cellspacing="0" width="700">
                <tr>
                    <td class="inner_heading">Doctor Message Boards :
                        <asp:Label runat="server" ID="lblBlogName"></asp:Label><br />
                    </td>
                </tr>
                <tr>
                    <td>
                        <table border="0" cellpadding="0" cellspacing="0" width="700">
                            <tr>

                                <td>
                                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                        <tr>
                                            <td colspan="2" class="page-heading">

                                                <span style="font-size: 12px">Post your comments for
                                            <asp:Label runat="server" ID="lblDoctorName"></asp:Label>
                                                    !! Users please sign in
                                                        to post.</span><br />
                                                <br />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">

                                                <asp:Repeater ID="grdDoctorBlog" runat="Server">
                                                    <HeaderTemplate>
                                                        <table cellpadding="4" cellspacing="0" border="0" width="100%">
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <tr bgcolor="DarkGray">
                                                            <td><b>By, <%# DataBinder.Eval(Container.DataItem, "postedname")%></b></td>
                                                            <td align="right"><b><%# DataBinder.Eval(Container.DataItem, "msgDate")%></b></td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2"><%# DataBinder.Eval(Container.DataItem, "msgDescription")%></td>
                                                        </tr>
                                                    </ItemTemplate>
                                                    <AlternatingItemTemplate>
                                                    </AlternatingItemTemplate>
                                                    <FooterTemplate>
                                                        </table>
                                                    </FooterTemplate>
                                                </asp:Repeater>

                                                <asp:Label runat="server" ID="lblerr" Visible="false"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <uc1:postMessage PostFor="drMessage" ID="PostMessage1" runat="server"></uc1:postMessage>
                                            </td>
                                        </tr>
                                    </table>
                                </td>

                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
